/*
 * @Author: czy
 * @Date: 2021-05-21 14:28:45
 * @LastEditTime: 2021-05-21 21:48:14
 */
#include "dev/hardware/uart.h"
#include "dev/hardware/vga.h"

/**
 * @description: Output a string at the coordinates of (x, y), and then return to the initial position.
 * @param x     col
 * @param y     row
 * @param buf   String.
 * @param fd    Equipment number, -1 for uart, 1 for vga, 0 for uart and vga.
 */
void gotoxy(int x, int y, char *buf, int fd)
{
    if (fd >= 0)
    {
        vga_gotoxy(x, y, buf);
    }
}